//
//  WSBMovieItemModel.m
//  NuoMi
//
//  Created by ios on 16/1/15.
//  Copyright © 2016年 iOSwusanbao. All rights reserved.
//

#import "WSBMovieItemModel.h"

@implementation WSBMovieItemModel

+(NSDictionary *)JSONKeyPathsByPropertyKey{
    return @{
             @"filter":@"filter",
             @"cityId":@"cityId",
             @"cityName":@"cityName",
             @"result":@"result",
             @"totalNum":@"totalNum",
             
             @"pageSize":@"pageSize",
             @"pageNum":@"pageNum",
             @"adBar":@"adBar"
             };
}

+(NSValueTransformer *)resultJSONTransformer {
    return [MTLJSONAdapter arrayTransformerWithModelClass:[WSBMovieResultModel class]];
}

@end

@implementation WSBMovieResultModel

+(NSDictionary *)JSONKeyPathsByPropertyKey{
    return @{
             @"name":@"name",
             @"address":@"address",
             @"distance":@"distance",
             @"minPrice":@"minPrice",
             @"isGroupon":@"isGroupon",
             
             @"isSeatSelectable":@"isSeatSelectable"
             };
}

+(NSValueTransformer *)isGrouponJSONTransformer {
    return [NSValueTransformer valueTransformerForName:MTLBooleanValueTransformerName];
}

+(NSValueTransformer *)isSeatSelectableJSONTransformer {
    return [NSValueTransformer valueTransformerForName:MTLBooleanValueTransformerName];
}

@end
